/*
 * @Description: element 组件
 * @Author: DHL
 * @Date: 2022-01-12 16:52:41
 * @LastEditors: DHL
 * @LastEditTime: 2022-05-22 21:57:25
 */
import type { App } from 'vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { useAppStore } from '../store/modules/app'

export function setupElementPlugins(app: App<Element>) {
  app.use(ElementPlus, { size: useAppStore().getSize, locale: zhCn, zIndex: 3000 })
}
